package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IEmailTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.EmailType;
import com.ricchieri.service.interf.IEmailTypeService;

@Transactional(readOnly = true)
public class EmailTypeService implements IEmailTypeService, Serializable {
	private static final long serialVersionUID = -8594802451070146869L;
	IEmailTypeDao emailTypeDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<EmailType> getAllEmailTypes() {
		BasicFilter filter = new BasicFilter();
		return emailTypeDao.getAllEmailTypes(filter);
	}

	public IEmailTypeDao getEmailTypeDao() {
		return emailTypeDao;
	}

	public void setEmailTypeDao(IEmailTypeDao emailTypeDao) {
		this.emailTypeDao = emailTypeDao;
	}
}
